package com.moli.iov.base.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.moli.iov.base.model.dto.req.VehicleBaseReqDto;
import com.moli.iov.base.model.po.VehicleBaseAuth;
import com.moli.iov.rest.RestResponse;

import java.util.List;


/**
 * <p>
 * 车辆基础授权状态表 服务类
 * </p>
 *
 * @author wanghualin
 * @since 2020-02-19
 */
public interface IVehicleBaseAuthService extends IService<VehicleBaseAuth> {
    /**
     * 添加车辆 车辆基础授权状态表
     *
     * @param baseAuth
     * @return
     */
    public RestResponse saveVehicleBaseAuth(VehicleBaseAuth baseAuth);

    /**
     * 查找 VehicleBaseAuth 不走缓存
     *
     * @param vin
     * @return
     */
    VehicleBaseAuth    getVehicleBaseAuthDbByVin(String vin);

    List<VehicleBaseAuth> listVehicleBaseAuth();

    /**
     * 根据车架号查找 授权
     * @param vin
     * @return
     */
    VehicleBaseAuth getVehicleBaseAuthByVin(String vin);

    /**
     * 添加车辆 车辆基础授权状态表
     *
     * @param baseAuth
     * @return
     */
    public RestResponse updateVehicleBaseAuth(VehicleBaseAuth baseAuth);

    /**
     * 初始化
     */
    public   void  initVehicleVehicleBaseAuth();

}
